package org.jeecg.modules.complain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.complain.entity.Repair;
import org.jeecg.modules.complain.entity.RepairStatus;

import java.util.List;

/**
 * @Description: 报修状态
 * @Author: jeecg-boot
 * @Date:   2019-08-05
 * @Version: V1.0
 */
public interface RepairStatusMapper extends BaseMapper<RepairStatus> {
    void insertAttchFile(@Param("repairId") String repairId, @Param("attachFile") String attachFile);
    String selectBtn(@Param("userId") String userId);
    List<Repair>  selectAcpet(@Param("status") Integer status, @Param("officeId") String officeId);
    RepairStatus selectByRepairId(@Param("repairId") String repairId, @Param("status") Integer status);
    Integer updateByRepairId(RepairStatus repairStatus);
    Integer updateStatusByRepairId(@Param("repairId") String repairId, @Param("status") Integer status, @Param("remarks") String remarks);
    List<Repair> selectByUserId(@Param("userId") String repairId, @Param("status") Integer status, @Param("officeId") String officeId);
     Integer deleteByrepairId(@Param("repairId") String repairId, @Param("status") Integer status);
    List<RepairStatus> selectRepairStatus(@Param("repairId") String repairId);
    List<Repair> findHangUp(@Param("userId") String repairId, @Param("status") Integer status, @Param("status1") Integer status1);
    Integer statisticsRepair(@Param("userId") String userId, @Param("status") Integer status);
}
